package po;

import java.io.Serializable;

public class AccountPO implements Serializable,Containsable {
	String name;
	double money;
	String id;

	public AccountPO(String name, double money) {
		this.name = name;
		this.money = money;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean contains(String key) {
		// TODO Auto-generated method stub
		return name.contains(key)||((money - Integer.parseInt(key)) < 0.001)||id.contains(key);
	}
	
	

}
